home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir42 / ezhelp14.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-02-01  |  1KB  |  60 lines

  1. echo off
  2. cls
  3. echo .=============== EZhelp installation batch ===============
  4. echo .
  5. if %1()==() goto TELLUSE
  6. if %2()==() goto TELLUSE
  7.  
  8. IF EXIST %1:\EZHELP.EXE GOTO ASKCONFIRM
  9. echo .    EZhelp files not found on drive %1...
  10. echo .
  11. goto END
  12.  
  13. :ASKCONFIRM
  14. echo .    This batch will install EZhelp files from
  15. echo .    drive %1 to drive %2, creating the following
  16. echo .    subdirectories:
  17. echo .
  18. echo .       \EZHELP       - EZhelp Reference system
  19. echo .       \EZHELP\SRC   - Sample C program
  20. echo . 
  21. echo .    If you wish to exit without installing,
  22. echo .    press Ctrl-Break now.
  23. echo .
  24. pause
  25.  
  26. md %2:\ezhelp > NUL
  27. copy %1:\*.* %2:\ezhelp\*.*
  28.  
  29. :CHECKLIBS
  30. IF EXIST %1:\TCLIB\EZS.LIB GOTO INSTALLLIB
  31. GOTO CHECKSRC
  32.  
  33. :INSTALLLIB
  34. md %2:\ezhelp\TCLIB > NUL
  35. copy %1:\TCLIB\*.* %2:\ezhelp\TCLIB\*.*
  36.  
  37. md %2:\ezhelp\src > NUL
  38. copy %1:\src\*.* %2:\ezhelp\src\*.*
  39.  
  40. :STARTEZREF
  41. %2:
  42. cd\ezhelp
  43. cls
  44. ezhelp ezhelp.txt
  45. echo .=============== Thanks for trying EZhelp! ===============
  46. echo  .
  47. echo  .          Type EX1 or EX2 to see more examples...
  48. echo  .     or type EZSETUP to set default colors & options.
  49. echo  .
  50.  
  51. goto END
  52.  
  53. :TELLUSE
  54. echo .    Usage: INSTALL X Y
  55. echo .
  56. echo .           ...where X is the floppy drive letter
  57. echo .              and Y is the destination drive letter
  58. echo .
  59. :END
  60.